//创建App的方法
import { createApp } from 'vue';
//引入App组件
import App from './App.vue';
//引入路由
import router from './router';
//引入Vuex仓库
import store from './store';
//引入Element-plus
import ElementPlus from 'element-plus';
import 'element-plus/dist/index.css';
//全局引入icon图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
//创建实例 App
const app = createApp(App);



//这是全局注册element-plus的icon图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
};





//app挂载
app.use(store).use(ElementPlus).use(router).mount('#app');